package com.exampletest.mapper;

import com.exampletest.model.Dynamic;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DynamicMapper {
    int insert(Dynamic dynamic);
    int update(Dynamic dynamic);
    int deleteById(Long id);
    Dynamic selectById(Long id);
    List<Dynamic> selectAll();
    List<Dynamic> searchDynamics(String keyword, String author, Integer status, int offset, int pageSize);
    int getTotalCount(String keyword, String author, Integer status);
}